package com.wq.feign.api.sentinel;

import com.wq.feign.api.clients.ProductProviderClient;
import com.wq.feign.api.domain.Result;
import com.wq.feign.api.domain.request.ProductReq;
import org.springframework.stereotype.Component;

@Component
public class ConsumerFallBack implements ProductProviderClient {

    @Override
    public Result getServiceInfo() {
        return new Result(500, "熔断保护", null);
    }

    @Override
    public Result selectById(Long id) {
        return new Result(500, "熔断保护", null);
    }

    @Override
    public Result updateProduct(ProductReq productReq) {
        return new Result(500, "熔断保护", null);
    }
}

